Skip to content

Execute agent schedule - returns workflow YAML

Request

Security
ApiKeyAuth
Path
idstringrequired
Example:00000000-0000-0000-0000-000000000001
Bodyapplication/x-www-form-urlencoded
object
curl -i -X POST \
  https://llm-api.treasuredata.com/api/agent_schedules/00000000-0000-0000-0000-000000000001/execute \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/x-www-form-urlencoded'

Responses

Agent schedule execution initiated successfully

Bodyapplication/x-yaml
string
Response
{
  "active_schedule": {
    "summary": "Active schedule - returns execution workflow",
    "value": "---\n\"+create_chat\":\n  http>: /api/chats\n  method: POST\n  content:\n    data:\n      type: chats\n      attributes:\n        formInterfaceId: \"12345\"\n        inputParameters: '{\"param\": \"value\"}'\n\"+with_chat_id\":\n  _do:\n    \"+continue_chat\":\n      py>: continue_chat_handler.handle_sse_request\n      url: /api/chats/${chat_id}/continue\n\"+callback_success\":\n  http>: /api/agent_schedules/00000000-0000-0000-0000-000000000001/callback\n  method: POST\n"
  },
  "expired_schedule": {
    "summary": "Expired schedule - returns expiration log",
    "value": "---\n\"+log_expired\":\n  echo>: Schedule 00000000-0000-0000-0000-000000000001 has expired and was disabled\n"
  }
}